<?php 
include("connection.php");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
	color: #0000CC;
	font-weight: bold;
}
-->
</style>
</head>

<body>

<?php
	
	
	
	//connection
/* 
	$host="localhost"; // Host name
$adminname=""; // Mysql username
$adminpass=""; // Mysql password
$db_name="ocrs"; // Database name
$tbl_name="admin"; // Table name

//get form data
	$adminname = $_GET['adminname'];
	$adminpass = $_GET['adminpass'];
	
	
// To protect MySQL injection (more detail about MySQL injection)
$adminname = stripslashes($adminname);
$adminpass = stripslashes($adminpass);
$adminname = mysql_real_escape_string($adminname);
$adminpass = mysql_real_escape_string($adminpass);

$sql="SELECT * FROM $tbl_name WHERE adminname='$adminname' and adminpass='$adminpass'";
$result=mysql_query($sql);

// Mysql_num_row is counting table row
$count=mysql_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row

if($count==1){
// Register $myusername, $mypassword and redirect to file "login_success.php"
header("location:home.php");

}
else {
echo "Wrong adminname or adminpassword";
} */

?>

<p align="center">&nbsp;</p>
<div align="center">
  <table width="915" height="200" border="1" cellpadding="1" cellspacing="1">
    <tr>
      <th scope="col"><a href="REGISTRATIONLIMITS.html">SET REGISTRATION LIMITS</a></th>
    </tr>
    <tr>
      <td height="61"><p align="center"><strong><a href="DEFAULTERLIST.html">VIEW DEFAULTER LIST</a></strong></p>
      <p>&nbsp;</p></td>
    </tr>
    <tr>
      <td height="62"><div align="center" class="style1"><a href="ADMIN MODIFY COURSES.html">ADD AND DELETE COURSES</a></div></td>
    </tr>
    <tr>
      <td><div align="center"><strong><a href="SEARCHSTUDENT.html">STUDENT INFORMATION</a></strong></div></td>
    </tr>
    <tr>
      <td><div align="center"><strong><a href="index.php">LOGOUT</a></strong></div></td>
    </tr>
  </table>
</div>
</body>
</html>
